package com.jwcao.common.cast.operation.access.field;

import com.jwcao.common.cast.operation.access.AccessOperation;
import com.jwcao.common.scan.object.ScanField;
import org.apache.commons.lang3.StringUtils;

/**
 * @author caojingwei date: 2023/3/25 11:26
 * @name IgnoresFieldAccessOperationFactory
 * @description 被忽略的字段只能作为函数参数
 */
public class IgnoreFieldAccessOperation extends FieldAccessOperation {

    public IgnoreFieldAccessOperation(ScanField targetField, ScanField sourceField) {
        super(targetField, sourceField);
    }

    @Override
    public Object execute(Object object) {
        return sourceField.get(object);
    }
}
